﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ProjectThuCung.Models
{
    public class CTHoaDon
    {
        [Key]
        public int CTHoaDonID { get; set; }

        [Required]
        public int HoaDonID { get; set; }

        [Required]
        public int SanPhamID { get; set; }

        [Required]
        [Display(Name = "Giá trên hóa đơn")]
        public float GiaBan { get; set; }

        [Required]
        [Display(Name = "Số lượng")]
        public int Soluong { get; set; }

        public virtual HoaDon HoaDon { get; set; }
        public virtual SanPham SanPham { get; set; }
    }
}